package cn.kxm.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.kxm.pojo.Company;

public interface CompanyMapper {
    public List<Company> getCompanys(@Param("types")List<Integer> types,@Param("name")String name,@Param("code")String code,@Param("currPage")Integer currPage,@Param("size")Integer size);
    public int getCompanyCount(@Param("types")List<Integer> types,@Param("name")String name,@Param("code")String code);
    /**getgetCompanyCount
	 * 根据条件查询供应商信息
	 * @param company
	 * @param pageSize
	 * @param currentPageNo
	 * @return
	 */
	List<Company>getCompanyAll(@Param("company")Company company,@Param("pageSize")Integer pageSize
			,@Param("currentPageNo")Integer currentPageNo);
	
	/**
	 * 根据条件查询供应商数量
	 * @param company
	 * @return
	 */
	int getCompanyCountt(@Param("company")Company company);
}
